const express = require('express')
const router = express.Router()
// 1. 导入验证数据的中间件
const expressJoi = require('@escook/express-joi')

// 导入查询数据接口
const user_query = require('../router-query/select')
// 2. 导入需要的验证规则对象
const { reg_id_schema } = require('../schema/index')

// 查询数据
router.get('/select', expressJoi(reg_id_schema), user_query.selects)

module.exports = router
